<form (ngSubmit)="submitForm()" [formGroup]="validateForm" class="login-form" nz-form>
  <nz-form-item>
    <nz-form-control nzErrorTip="Please input your username!">
      <nz-input-group nzPrefixIcon="user">
        <input formControlName="userName" nz-input placeholder="Username" type="text"/>
      </nz-input-group>
    </nz-form-control>
  </nz-form-item>
  <nz-form-item>
    <nz-form-control nzErrorTip="Please input your Password!">
      <nz-input-group nzPrefixIcon="lock">
        <input formControlName="password" nz-input placeholder="Password" type="password"/>
      </nz-input-group>
    </nz-form-control>
  </nz-form-item>
  <div class="login-form-margin" nz-row>
    <div [nzSpan]="12" nz-col>
      <label formControlName="remember" nz-checkbox>
        <span>Remember me</span>
      </label>
    </div>
    <div [nzSpan]="12" nz-col>
      <a class="login-form-forgot">Forgot password</a>
    </div>
  </div>
  <button [nzType]="'primary'" class="login-form-button login-form-margin" nz-button>Log in</button>
  Or <a routerLink="/register"> register now! </a>
</form>
